package P002_Constant2Varia;

import org.junit.Test;

import java.util.Random;

/**
 * 莫让常量蜕变成变量
 * @author xufy1
 */
public class Constant2Varia {

    private static final int RAND_CONST=new Random().nextInt();

    public static  int RAND_CONST1=new Random().nextInt();


    @Test
    public  void test1() {
        RAND_CONST1=123;
        System.out.println("值 RAND_CONST1 ："+RAND_CONST1);
        System.out.println("常量值："+RAND_CONST);
    }
}
